package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HynfjeMapper;
import com.ruoyi.system.domain.Hynfje;
import com.ruoyi.system.service.IHynfjeService;
import com.ruoyi.common.support.Convert;

/**
 * 会员年费金额 服务层实现
 * 
 * @author ruoyi
 * @date 2019-07-16
 */
@Service
public class HynfjeServiceImpl implements IHynfjeService 
{
	@Autowired
	private HynfjeMapper hynfjeMapper;

	/**
     * 查询会员年费金额信息
     * 
     * @param hynfjeId 会员年费金额ID
     * @return 会员年费金额信息
     */
    @Override
	public Hynfje selectHynfjeById(Integer hynfjeId)
	{
	    return hynfjeMapper.selectHynfjeById(hynfjeId);
	}
	
	/**
     * 查询会员年费金额列表
     * 
     * @param hynfje 会员年费金额信息
     * @return 会员年费金额集合
     */
	@Override
	public List<Hynfje> selectHynfjeList(Hynfje hynfje)
	{
	    return hynfjeMapper.selectHynfjeList(hynfje);
	}
	
    /**
     * 新增会员年费金额
     * 
     * @param hynfje 会员年费金额信息
     * @return 结果
     */
	@Override
	public int insertHynfje(Hynfje hynfje)
	{
	    return hynfjeMapper.insertHynfje(hynfje);
	}
	
	/**
     * 修改会员年费金额
     * 
     * @param hynfje 会员年费金额信息
     * @return 结果
     */
	@Override
	public int updateHynfje(Hynfje hynfje)
	{
	    return hynfjeMapper.updateHynfje(hynfje);
	}

	/**
     * 删除会员年费金额对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHynfjeByIds(String ids)
	{
		return hynfjeMapper.deleteHynfjeByIds(Convert.toStrArray(ids));
	}
	
}
